package internal

import (
	"longmen/server/pkg/db/redis/cache"
	"time"
)

func LiveDbToRedis() {
	for {
		cache.GetInstance().SyncDBToRedis()
		time.Sleep(2 * time.Second)
	}
}
